#include "reg52.h"

typedef unsigned char u8;
typedef unsigned int u16;

sbit S1=P1^0;
sbit S2=P1^1;
sbit LED1=P0^1;
sbit LED2=P0^0;

void delay(u8 i)
{
  while(i--);
}

void main()
{
	while(1)
	{
		if(S1==0)
			LED1=0;
		else
			LED1=1;
		
	if(S2==0)
			LED2=0;
		else
			LED2=1;
	}
	
}
	